// ServerThreadStaticHash.java
// Static HashMap that holds client threads for the standalone clients

package serverSocket;

import java.util.HashMap;

public class ServerThreadStaticHash
{
	private static HashMap<String,ServerThread> hashtable = new HashMap<String,ServerThread>();
	
	public static void addServerThread(String key, ServerThread st)
	{
		hashtable.put(key, st);
	}
	
	public static ServerThread getServerThread(String key)
	{
		return hashtable.get(key);
	}
	
	public static void removeServerThread(String key)
	{
		if(hashtable.containsKey(key))
		{
			hashtable.remove(key);
		}
	}
}
